<template>
  <div class="top_bg">
    <div class="img_bg">
      <img class="head_img" src="@/img/head_img.png" >
      <span>欢迎!{{this.$route.query.name}}</span>
      <div class="cell">
      <ul>
        <li @click="change(1)">首页</li>
        <li @click="change(2)">个人信息</li>
        <li @click="change(3)">设置</li>
      </ul>
      </div>
    </div>
  </div>
</template>

<script>
  import {mapGetters} from 'vuex'
    export default {
      data () {
        return {
        }
      },
      props: {
        'name' : [String]
      },
      computed: {
        ...mapGetters([
          'username'
        ])
      },
      methods: {
        change(e) {
          this.$emit('number',e)
        }
      }
    }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  @import "./topView.styl";

</style>
